﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PPI.Entities.Lookup;

namespace PPI.Entities.Inspections
{
    public class ESection : ELookupBase
    {
        public ESection()
            :base()
        {
        }

        public ESection(Int32 id)
        :this()
        {
            Id = id;
        }
        public ESection(Int32 id, string name)
            :this(id)
        {
            Name = name;
        }

        public override string ToString()
        {
            if (String.IsNullOrEmpty(Name))
                return Id.ToString();

            return Name;
        }
    }
}
